
package io.summer.basis.excepts;

import io.summer.basis.api.ApiCode;
import io.summer.basis.enums.IEnumCode;

/**
 * Exception for Business
 *
 * @author Moonlight
 */
public class BizException extends AppException {
  private static final long serialVersionUID = 1L;

  public BizException(String message) {
    super(ApiCode.BIZ_ERROR, message);
  }

  public BizException(String message, Object... params) {
    this(String.format(message, params));
  }

  public BizException(IEnumCode apiCode) {
    super(apiCode);
  }
}
